export default class seasonTag {
  constructor(id: string, name: string, value: Array<seasonTagFilter>) {
    this.id = id;
    this.name = name;
    this.values = value;
  }

  id: string;
  name: string;
  index: number = 0;
  current: seasonTagFilter;
  selectArr: Array<any> = [];
  values: Array<seasonTagFilter>;

  public toSelected() {
    this.selectArr.length = 0;
    if (this.values?.length > 0) {
      for (let v of this.values) {
        this.selectArr.push({
          value: v.name
        });
      }
    }
  }
}


export class seasonTagFilter {
  constructor(id: string, name: string) {
    this.id = id;
    this.name = name;
  }

  id: string;
  name: string;
}